<!DOCTYPE html>

<!--作业要求：
  1、当第一个密码不为空并失去焦点，第二个密码框才可输入。
  2、当第二个密码不为空并失去焦点，submit才有效。
-->
<html lang ="en">
  <head>
    <title>密码检查</title>
    <meta charset = "utf-8" />
    <script type = "text/javascript"  src = "pswdwt.js" ></script>
    </script>
  </head>
  <body>
    <h3> 密码输入 </h3>
    <form id = "myForm"  action = "">
      <p>
      
      <label>  你的密码
        <input type = "password" id = "initial" onblur=check1()
               size = "10" />
      </label>
      <br /><br />
 
      <label> 验证密码
        <input type = "password"  id = "second" readonly="true"
               size = "10" />
      </label>
      <br /><br />

      <input type = "reset"  name = "reset" />
      <input type = "submit"  name = "submit" disabled="true"/>
      </p>
    </form>

<!-- Script for registering the event handlers  -->
    <script type = "text/javascript"  src = "pswdwt1.js">
    </script>
  </body>
</html>
